package com.ahao.sdk.plugins;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.KeyEvent;

import com.ahao.sdk.IBasePlugin;
import com.ahao.sdk.utils.LogUtils;

public class ExamplePlugin implements IBasePlugin {
    @Override
    public void onEmit(Context context, String s, String s1) {

    }

    @Override
    public void initApplication(Application application) {
        LogUtils.info("插件示例，调用: initApplication");
    }

    @Override
    public void onCreate(Activity activity) {
        LogUtils.info("插件示例，调用: onCreate");
    }

    @Override
    public void onStart() {
        LogUtils.info("插件示例，调用: onStart");
    }

    @Override
    public void onPause() {
        LogUtils.info("插件示例，调用: onPause");
    }

    @Override
    public void onResume() {
        LogUtils.info("插件示例，调用: onResume");
    }

    @Override
    public void onNewIntent(Intent intent) {
        LogUtils.info("插件示例，调用: onNewIntent");
    }

    @Override
    public void onStop() {
        LogUtils.info("插件示例，调用: onStop");
    }

    @Override
    public void onDestroy() {
        LogUtils.info("插件示例，调用: onDestroy");
    }

    @Override
    public void onRestart() {
        LogUtils.info("插件示例，调用: onRestart");
    }

    @Override
    public void onConfigurationChanged(Configuration configuration) {
        LogUtils.info("插件示例，调用: onConfigurationChanged");
    }

    @Override
    public void onSaveInstanceState(Bundle bundle) {
        LogUtils.info("插件示例，调用: onSaveInstanceState");
    }

    @Override
    public void onActivityResult(int i, int i1, Intent intent) {
        LogUtils.info("插件示例，调用: onActivityResult");
    }

    @Override
    public void onBackPressed() {
        LogUtils.info("插件示例，调用: onBackPressed");
    }

    @Override
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        LogUtils.info("插件示例，调用: onKeyDown");

        return false;
    }

    @Override
    public void onRequestPermissionsResult(int i, String[] strings, int[] ints) {
        LogUtils.info("插件示例，调用: onRequestPermissionsResult");

    }
}
